from pydantic import BaseModel
from typing import Optional


class FeedbackCreate(BaseModel):
    user_name: str
    contact_info: str
    feedback_text: str


class FeedbackOut(BaseModel):
    id: int
    user_name: str
    contact_info: str
    feedback_text: str
    created_at: Optional[str] = None

    class Config:
        from_attributes = True
